#ifndef DATABASE_CONNECTION_H
#define DATABASE_CONNECTION_H

#include "../Socket/Socket.h"
#include "../Messages/MessageLogIn.h"

#ifdef WIN32
#pragma comment(lib, "libmySQL.lib")
#include <mysql.h>
#else
#include <mysql.h>
#endif


class DataBaseConnection
{
private:

	static DataBaseConnection* m_instance;
	MYSQL* m_connection;

public:
	DataBaseConnection(void);
	~DataBaseConnection(void);

	static DataBaseConnection* getInstance();

	MessageLogIn* getUserData(std::string id);
	bool connect();
};

#endif